package system;

public class People {
    private String name;
    private long idcard;
    private String sex;
    private String adress;//住址
    public People() {
    }

    public People(String name, long idcard, String sex, String adress) {
        this.name = name;
        this.idcard = idcard;
        this.sex = sex;
        this.adress = adress;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getIdcard() {
        return idcard;
    }

    public void setIdcard(long idcard) {
        this.idcard = idcard;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    @Override
    public String toString() {
        return name+"\t"+idcard+"\t"+sex+"\t"+adress;
    }
}
